<?php defined("MAIN_DIR") or die("No direct access"); ?>

<script type="text/javascript">
var main = false;
$(document).ready(function(){
	$(".section").hover(function(){
		$(".hidden").hide();
		$(this).children(".hidden").fadeIn(100);
	},function(){
		$(this).children(".hidden").fadeOut(100);
	})
	
	$("#city_change").change(function(){
		document.cookie = "city_admin="+$(this).val()+"; expires=Wed, 01-Jan-2020 00:00:00 GMT; path=/;";
		location.reload();
	})
})
</script>	
<body>
<div id="menu" align='left'>
	<div class="section">
		<div class="section_link"><a href="/admin/banks">Банки</a></div>
		<div class="list"><img src="/files/images/list.png" width="7" height="5" /></div>
		<div class="hidden">
			<div class="h_section_link"><a href="/admin/banks">Банки</a></div>
			<div class="subsection">
				<div class="subsection_link"><a href="/admin/banks">Список</a></div>
				<div class="subsection_link"><a href="/admin/mentions">Рейтинг и отзывы</a></div>
				<div class="subsection_link"><a href="/admin/rko">РКО</a></div>
				<div class="subsection_link"><a href="/admin/deposits">Вклады</a></div>
				<div class="subsection_link"><a href="/admin/boxes">Сейфовые ячейки</a></div>
				<div class="subsection_link"><a href="/admin/categories">Категории вакансий</a></div>
				<div class="subsection_link"><a href="/admin/vacancies">Вакансии</a></div>
				<div class="subsection_link"><a href="/admin/atms">Банкоматы</a></div>
			</div>
		</div>
	</div>
	<div class="section_empty">&nbsp;</div>
	<div class="section">
		<div class="section_link"><a href="/admin/credits/home/">Кредиты</a></div>
		<div class="list"><img src="/files/images/list.png" width="7" height="5" /></div>
		<div class="hidden">
			<div class="h_section_link"><a href="/admin/credits/home">Кредиты</a></div>
			<div class="subsection">
				<div class="subsection_link"><a href="/admin/credits/home">Ипотека</a></div>
				<div class="subsection_link"><a href="/admin/credits/needs">На срочные нужды</a></div>
				<div class="subsection_link"><a href="/admin/credits/auto">На авто</a></div>
				<div class="subsection_link"><a href="/admin/credits/carts">Кредитные карты</a></div>
				<div class="subsection_link"><a href="/admin/credits/business">Бизнесу</a></div>
			</div>
		</div>
	</div>
	<div class="section_empty">&nbsp;</div>
	<div class="section">
		<div class="section_link"><a href="/admin/site/text">Сайт</a></div>
		<div class="list"><img src="/files/images/list.png" width="7" height="5" /></div>
		<div class="hidden">
			<div class="h_section_link"><a href="/admin/site/text">Сайт</a></div>
			<div class="subsection">
				<div class="subsection_link"><a href="/admin/site/text">Тексты</a></div>
				<div class="subsection_link"><a href="/admin/site/users">Пользователи</a></div>
				<div class="subsection_link"><a href="/admin/site/cities">Города</a></div>
				<div class="subsection_link"><a href="/admin/site/polls">Опросы</a></div>
				<div class="subsection_link"><a href="/admin/site/banners">Баннеры</a></div>
			</div>
		</div>
	</div>
	<div style="float:right">
		<select style='width:150px' id="city_change"><?php
			$city_menu_res = mysql_query("select `city_id`,`city_name` from `city` order by `city_name`");
			while ($city_menu_row = mysql_fetch_array($city_menu_res))
			{
				echo "<option value='$city_menu_row[city_id]'";
				if ($current_admin_city['city_id'] == $city_menu_row['city_id'])
					echo "selected='selected'";
				echo ">$city_menu_row[city_name]</option>";
			}
		?></select>
	</div>
</div>
<br /><br /><br />